package com.hnevc.mallserver3.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hnevc.mallserver3.entity.Address;
import com.hnevc.mallserver3.mapper.AddressMapper;
import com.hnevc.mallserver3.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class AddressServiceImpl  extends ServiceImpl<AddressMapper, Address> implements AddressService {
    @Autowired
    AddressMapper addressMapper;


    @Override
    public List<Address> listByMemberId(Long memberId) {
        return  addressMapper.selectByMemberId(memberId);
    }
}
